Skip to content

Theory of Mind (ToM) blocks and simulate frame#33

Merged
emson merged 5 commits intomainfrom
feature/simulate
Apr 28, 2026
Merged

Theory of Mind (ToM) blocks and simulate frame#33
emson merged 5 commits intomainfrom
feature/simulate

Conversation

@emson
Copy link
Copy Markdown
Owner

@emson emson commented Apr 28, 2026

Summary

  • Add Theory of Mind (ToM) block support with mind operations lifecycle
  • Implement simulate frame for agent introspection of other agents
  • Add mind block lifecycle operations: mind_add, mind_list, mind_show, mind_predict, mind_outcome
  • Add falsifiable prediction tracking with Bayesian update on outcomes
  • Fix ruff and mypy violations (import sorting, type annotations, line length)

Test plan

  • Run tests: uv run pytest tests/test_mind.py -v
  • Verify linting: uv run ruff check src/ tests/
  • Verify types: uv run mypy src/

🤖 Generated with Claude Code

emson and others added 5 commits April 26, 2026 16:26
- Remove unnecessary f-string prefix in mind.py recovery message
- Remove forward reference quotes from type annotations (PEP 563)
- Break long lines to comply with 100-char limit
- Fix import sorting in test_mind.py
- Add type: ignore for rank_bm25 untyped library

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The CI ran mypy with --ignore-missing-imports which suppressed the
rank_bm25 error before the inline type: ignore could fire. With
strict = true (warn_unused_ignores), the now-unused comment became an
error itself.

- Add [[tool.mypy.overrides]] for rank_bm25 in pyproject.toml — the
  correct place to declare a third-party stub exception
- Remove the inline # type: ignore comment from retrieval.py
- Drop --ignore-missing-imports from CI so both environments use
  pyproject.toml as the single source of truth

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@emson emson merged commit ce33aac into main Apr 28, 2026
6 checks passed
@emson emson deleted the feature/simulate branch April 28, 2026 21:34
emson added a commit that referenced this pull request Apr 28, 2026
Version the ToM/simulate work merged in #33. Also documents the
git pull.rebase workflow in CLAUDE.md to prevent divergent-branch
confusion on shared feature branches.

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant